package org.jeecg.modules.purchase.vo;

import java.util.List;
import org.jeecg.modules.purchase.entity.PurchaseOrder;
import org.jeecg.modules.purchase.entity.PurchaseOrderItem;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 订单申请
 * @Author: jeecg-boot
 * @Date:   2022-11-14
 * @Version: V1.0
 */
@Data
@ApiModel(value="purchase_orderPage对象", description="订单申请")
public class PurchaseOrderPage {

	/**主健ID*/
	@ApiModelProperty(value = "主健ID")
    private String id;
	/**申请订单编码*/
	@Excel(name = "申请订单编码", width = 15)
	@ApiModelProperty(value = "申请订单编码")
    private String code;
	/**需求方所处公司*/
	@Excel(name = "需求方所处公司", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@ApiModelProperty(value = "需求方所处公司")
    private String demandCompany;
	/**需求方所处部门*/
	@Excel(name = "需求方所处部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@ApiModelProperty(value = "需求方所处部门")
    private String demandDepartment;
	/**申请部门*/
	@Excel(name = "申请部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@ApiModelProperty(value = "申请部门")
    private String department;
	/**申请人*/
	@Excel(name = "申请人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "申请人")
    private String personnel;
	/**采购类型*/
	@Excel(name = "采购类型", width = 15, dicCode = "purchase_order_type")
    @Dict(dicCode = "purchase_order_type")
	@ApiModelProperty(value = "采购类型")
    private String orderType;
	/**物品或礼品*/
	@Excel(name = "物品或礼品", width = 15, dicCode = "purchase_goods_gift")
    @Dict(dicCode = "purchase_goods_gift")
	@ApiModelProperty(value = "物品或礼品")
    private String goodsOrGift;
	/**申请日期*/
	@Excel(name = "申请日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "申请日期")
    private Date orderDate;
	/**申请原因*/
	@Excel(name = "申请原因", width = 15)
	@ApiModelProperty(value = "申请原因")
    private String reason;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**附件*/
//	@Excel(name = "附件", width = 15)
	@ApiModelProperty(value = "附件")
    private String attachment;
	/**总价*/
	@Excel(name = "总价", width = 15)
	@ApiModelProperty(value = "总价")
    private Double total;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**最后修改人*/
	@ApiModelProperty(value = "最后修改人")
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "最后修改时间")
    private Date updateTime;
	/**逻辑删除 0表示未删除  1表示删除*/
//	@Excel(name = "逻辑删除 0表示未删除  1表示删除", width = 15)
	@ApiModelProperty(value = "逻辑删除 0表示未删除  1表示删除")
    private Integer delFlag;
	/**当前登录用户部门编号*/
	@ApiModelProperty(value = "当前登录用户部门编号")
    private String sysOrgCode;
	/**租户id*/
//	@Excel(name = "租户id", width = 15)
	@ApiModelProperty(value = "租户id")
    private String tenantId;
	
	@ExcelCollection(name="申请的物品")
	@ApiModelProperty(value = "申请的物品")
	private List<PurchaseOrderItem> purchaseOrderItemList;
	
}
